<?
	include '/home/hosting_users/sl2000/www/include/sl2000.php';
	include $INCLUDE_HOME.'/db/db_connect.php';

	function get_user(){
		
		$sql="SELECT * FROM tb_members WHERE userid='".$_SESSION['userId']."'";
		$result=mysql_query($sql);
		
		if($row = mysql_fetch_array($result,MYSQL_ASSOC))
		{
			$keys = array_keys($row);
			for ($i = 0;$i<sizeof($keys);$i++)
			{
				$user[$keys[$i]] = $row[$keys[$i]];
			}
		}
		return $user;		
	}

?>
